const api = require('./index')

module.exports = {
	// 营收回款概况（月营收额/当月收款）
	monthlyIncome: req =>
		api.get('domain/financial/screen/monthlyIncome', {}, req),

	// 营收统计柱状图
	revenueGraph: req => api.get('domain/financial/screen/revenueGraph', {}, req),

	// 历史回款率曲线图
	historyCollectionRatioGraph: req =>
		api.get('domain/financial/screen/historyCollectionRatioGraph', {}, req),

	// 设备营收结构图表
	getEquipmentRevenue: req =>
		api.get('domain/financial/screen/getEquipmentRevenue', {}, req),

	// 收款率分布情况柱状图
	collectionRatioGraph: req =>
		api.get('domain/financial/screen/collectionRatioGraph', {}, req),

	// 线上营收概览曲线图（中台）
	getZtRevenueGraph: req =>
		api.get('domain/financial/screen/getZtRevenueGraph', {}, req),

	// 概览（实时客户数，合同数，本月合作客户数）
	overview: req => api.get('domain/business/big_screen/overview', {}, req),

	// 客户营收分布
	customerRevenueDistribution: req =>
		api.get(
			'domain/business/big_screen/customer_revenue_distribution',
			{},
			req
		),

	// 应用场景分布
	sceneDistribution: req =>
		api.get('domain/business/big_screen/scene_distribution', {}, req),

	// 客户合作频次
	purchaseDistribution: req =>
		api.get('domain/business/big_screen/purchase_distribution', {}, req),

	// 新老客户
	customerPurchaseDistribution: req =>
		api.get(
			'domain/business/big_screen/customer_purchase_distribution',
			{},
			req
		),

	// 人力分析-员工人效-外勤人员
	serviceEffectMonthly: req =>
		api.get('domain/service_order/big_screen/service_effect_monthly', {}, req),

	// 人力分析-员工人效
	employerAnalyse: req =>
		api.get('domain/capital/data_screen/employer_analyse', {}, req),

	// 人力分析-各区域人效
	serviceEffecAreas: req =>
		api.get('domain/service_order/big_screen/service_effect_areas', {}, req),

	// 设备资产总额
	equipmentAssets: req =>
		api.get('domain/capital/data_screen/equipment/assets', {}, req),

	// 设备分类台量
	equipmentSeries: req =>
		api.get('domain/capital/data_screen/equipment/number/series', {}, req),

	// 设备总出租率
	equipmentRents: req =>
		api.get('domain/capital/data_screen/equipment/rents', {}, req),

	// 资产出租率变化
	equipmentRentsSeries: req =>
		api.get('domain/capital/data_screen/equipment/rents/series', {}, req),

	// 设备类别占比
	equipmentProportion: req =>
		api.get('domain/capital/data_screen/equipment/proportion', {}, req),

	// 大区出租率排行榜
	equipmentRentsArea: req =>
		api.get('domain/capital/data_screen/equipment/rents/area', {}, req),

	// 门店出租率排行
	equipmentRentsStore: req =>
		api.get('domain/capital/data_screen/equipment/rents/store', {}, req),

	// 设备大区资产 + 折线图
	equipmentAssetsArea: req =>
		api.get('domain/capital/data_screen/equipment/assets/area', {}, req),

	// 设备台量大区 + 折线
	equipmentNumberArea: req =>
		api.get('domain/capital/data_screen/equipment/number/area', {}, req),

	// php设备运营分析-设备实时情况-故障设备
	equipmentRepairNum: req =>
		api.get('domain/service_order/big_screen/equipment_repair_num', {}, req),

	// 设备运营分析-故障分析
	repairAnalyze: req =>
		api.get('domain/service_order/big_screen/repair_analyze', {}, req),

	// 设备预警情况
	alarmList: req =>
		api.get('domain/capital/data_screen/equipment/alarm_list', {}, req),

	// 设备运营分析-故障原因
	repairReason: req =>
		api.get('domain/service_order/big_screen/repair_reason', {}, req),

	// 获取门店数量，同比去年（中间四个区域数据显示）
	getStoreNum: req =>
		api.get('domain/capital/data_screen/store/compare', {}, req),

	// 获取设备台量相关信息
	getEquipmentNum: req =>
		api.get('domain/capital/data_screen/equipment/number', {}, req),

	// 获取收款率
	getTotalCollectionRatio: req =>
		api.get('domain/financial/screen/getTotalCollectionRatio', {}, req),

	// 获取外勤人数
	getUserNum: req =>
		api.get('domain/service_order/big_screen/field_workers', {}, req),
}
